{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\usfaces3June16.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}16 Jun 2022, 13:16:57
{txt}
{com}. 
. 
. 
. *this file is usfaces3correctedMarch31.do
. 
. use "D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\USFacesFPAJune16Monadic.dta
{txt}
{com}. 
. *Table 1
. 
. 
. logit binforce fwhravgJuly20 war cinc election unified dempres coldwar mislg ccspn_ovr disspn_ovr combat  _spline1 _spline2 _spline3, robust cluster(leader)

{txt}note: _spline2 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-132.99049}  
Iteration 1:{space 3}log pseudolikelihood = {res:  -113.355}  
Iteration 2:{space 3}log pseudolikelihood = {res: -113.2855}  
Iteration 3:{space 3}log pseudolikelihood = {res:-113.28543}  
Iteration 4:{space 3}log pseudolikelihood = {res:-113.28543}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}       192
{txt}{col 49}{help j_robustsingular##|_new:Wald chi2(7)}{col 67}=          {res}.
{txt}{col 49}Prob > chi2{col 67}=          {res}.
{txt}Log pseudolikelihood = {res}-113.28543{txt}{col 49}Pseudo R2{col 67}= {res}    0.1482

{txt}{ralign 79:(Std. Err. adjusted for {res:9} clusters in leader)}
{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}    Robust
{col 1}     binforce{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
fwhravgJuly20 {c |}{col 15}{res}{space 2} 12.21369{col 27}{space 2} 4.351082{col 38}{space 1}    2.81{col 47}{space 3}0.005{col 55}{space 4} 3.685725{col 68}{space 3} 20.74165
{txt}{space 10}war {c |}{col 15}{res}{space 2} .2531687{col 27}{space 2} .7410057{col 38}{space 1}    0.34{col 47}{space 3}0.733{col 55}{space 4}-1.199176{col 68}{space 3} 1.705513
{txt}{space 9}cinc {c |}{col 15}{res}{space 2}-42.54879{col 27}{space 2} 13.90021{col 38}{space 1}   -3.06{col 47}{space 3}0.002{col 55}{space 4} -69.7927{col 68}{space 3}-15.30488
{txt}{space 5}election {c |}{col 15}{res}{space 2} .6021183{col 27}{space 2} .4464494{col 38}{space 1}    1.35{col 47}{space 3}0.177{col 55}{space 4}-.2729064{col 68}{space 3} 1.477143
{txt}{space 6}unified {c |}{col 15}{res}{space 2} 1.321541{col 27}{space 2} .5051996{col 38}{space 1}    2.62{col 47}{space 3}0.009{col 55}{space 4} .3313675{col 68}{space 3} 2.311714
{txt}{space 6}dempres {c |}{col 15}{res}{space 2}-2.075126{col 27}{space 2} .9428428{col 38}{space 1}   -2.20{col 47}{space 3}0.028{col 55}{space 4}-3.923064{col 68}{space 3}-.2271881
{txt}{space 6}coldwar {c |}{col 15}{res}{space 2}-.4058044{col 27}{space 2} .5843675{col 38}{space 1}   -0.69{col 47}{space 3}0.487{col 55}{space 4}-1.551144{col 68}{space 3} .7395349
{txt}{space 8}mislg {c |}{col 15}{res}{space 2}-.0574454{col 27}{space 2} .1054913{col 38}{space 1}   -0.54{col 47}{space 3}0.586{col 55}{space 4}-.2642044{col 68}{space 3} .1493137
{txt}{space 4}ccspn_ovr {c |}{col 15}{res}{space 2}-34.90278{col 27}{space 2} 10.02081{col 38}{space 1}   -3.48{col 47}{space 3}0.000{col 55}{space 4}-54.54322{col 68}{space 3}-15.26235
{txt}{space 3}disspn_ovr {c |}{col 15}{res}{space 2} 22.18259{col 27}{space 2} 13.70752{col 38}{space 1}    1.62{col 47}{space 3}0.106{col 55}{space 4}-4.683668{col 68}{space 3} 49.04884
{txt}{space 7}combat {c |}{col 15}{res}{space 2} 2.101072{col 27}{space 2}  .950704{col 38}{space 1}    2.21{col 47}{space 3}0.027{col 55}{space 4} .2377266{col 68}{space 3} 3.964418
{txt}{space 5}_spline1 {c |}{col 15}{res}{space 2}-.0004646{col 27}{space 2} .0004127{col 38}{space 1}   -1.13{col 47}{space 3}0.260{col 55}{space 4}-.0012734{col 68}{space 3} .0003443
{txt}{space 5}_spline2 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 5}_spline3 {c |}{col 15}{res}{space 2} .0009967{col 27}{space 2} .0011774{col 38}{space 1}    0.85{col 47}{space 3}0.397{col 55}{space 4} -.001311{col 68}{space 3} .0033044
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.642605{col 27}{space 2} 5.211288{col 38}{space 1}    0.70{col 47}{space 3}0.485{col 55}{space 4}-6.571331{col 68}{space 3} 13.85654
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using   usfacesTable1June16c,  dec(3) word replace ctitle(Logit_FWHR)
{txt}{stata `"shellout using `"usfacesTable1June16c.rtf"'"':usfacesTable1June16c.rtf}
{browse `"D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check"' :dir}{com} : {txt}{stata `"seeout using "usfacesTable1June16c.txt""':seeout}

{com}. margins, at(fwhravgJuly20=(1.80 1.85 1.90 1.95 2.0 2.05 2.1 2.15)) level(90)
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}       192
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(binforce), predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:fwhravgJu~20}{space 4}{txt:=} {space 8}1.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:fwhravgJu~20}{space 4}{txt:=} {space 7}1.85}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:fwhravgJu~20}{space 4}{txt:=} {space 8}1.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:fwhravgJu~20}{space 4}{txt:=} {space 7}1.95}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:fwhravgJu~20}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:fwhravgJu~20}{space 4}{txt:=} {space 7}2.05}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:fwhravgJu~20}{space 4}{txt:=} {space 8}2.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:fwhravgJu~20}{space 4}{txt:=} {space 7}2.15}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [90% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2}  .209774{col 26}{space 2} .0620442{col 37}{space 1}    3.38{col 46}{space 3}0.001{col 54}{space 4} .1077203{col 67}{space 3} .3118277
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .2893104{col 26}{space 2} .0494765{col 37}{space 1}    5.85{col 46}{space 3}0.000{col 54}{space 4} .2079288{col 67}{space 3}  .370692
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .3811074{col 26}{space 2} .0284864{col 37}{space 1}   13.38{col 46}{space 3}0.000{col 54}{space 4} .3342515{col 67}{space 3} .4279633
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .4802447{col 26}{space 2} .0127519{col 37}{space 1}   37.66{col 46}{space 3}0.000{col 54}{space 4} .4592697{col 67}{space 3} .5012196
{txt}{space 10}5  {c |}{col 14}{res}{space 2} .5806797{col 26}{space 2} .0329045{col 37}{space 1}   17.65{col 46}{space 3}0.000{col 54}{space 4} .5265566{col 67}{space 3} .6348027
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .6766792{col 26}{space 2} .0544074{col 37}{space 1}   12.44{col 46}{space 3}0.000{col 54}{space 4} .5871869{col 67}{space 3} .7661715
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .7634189{col 26}{space 2} .0680817{col 37}{space 1}   11.21{col 46}{space 3}0.000{col 54}{space 4} .6514345{col 67}{space 3} .8754034
{txt}{space 10}8  {c |}{col 14}{res}{space 2} .8368488{col 26}{space 2} .0720887{col 37}{space 1}   11.61{col 46}{space 3}0.000{col 54}{space 4} .7182735{col 67}{space 3} .9554241
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. marginsplot, level(90)
{res}
{text}{p 2 6 2}Variables that uniquely identify margins: fwhravgJuly20{p_end}
{res}{txt}
{com}. graph save Graph "D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\Figure1monadicJune16c.gph", replace
{res}{txt}(file D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\Figure1monadicJune16c.gph saved)

{com}.  
. 
. *now removing Kennedy and also cinc (with Kennedy removed the correlation between fwhr and cinc is .74 (with Kennedy in the model it is only .32)
. 
. logit binforce fwhravgJuly20 war election unified dempres coldwar mislg ccspn_ovr disspn_ovr combat  _spline1 _spline2 _spline3 if leader~="Kennedy", robust cluster(leader)

{txt}note: _spline2 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-124.58866}  
Iteration 1:{space 3}log pseudolikelihood = {res:-108.66725}  
Iteration 2:{space 3}log pseudolikelihood = {res:-108.63693}  
Iteration 3:{space 3}log pseudolikelihood = {res:-108.63691}  
Iteration 4:{space 3}log pseudolikelihood = {res:-108.63691}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}       180
{txt}{col 49}{help j_robustsingular##|_new:Wald chi2(6)}{col 67}=          {res}.
{txt}{col 49}Prob > chi2{col 67}=          {res}.
{txt}Log pseudolikelihood = {res}-108.63691{txt}{col 49}Pseudo R2{col 67}= {res}    0.1280

{txt}{ralign 79:(Std. Err. adjusted for {res:8} clusters in leader)}
{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}    Robust
{col 1}     binforce{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
fwhravgJuly20 {c |}{col 15}{res}{space 2} 26.55213{col 27}{space 2} 5.366637{col 38}{space 1}    4.95{col 47}{space 3}0.000{col 55}{space 4} 16.03371{col 68}{space 3} 37.07054
{txt}{space 10}war {c |}{col 15}{res}{space 2}-.1106899{col 27}{space 2} .7265608{col 38}{space 1}   -0.15{col 47}{space 3}0.879{col 55}{space 4}-1.534723{col 68}{space 3} 1.313343
{txt}{space 5}election {c |}{col 15}{res}{space 2} .5893115{col 27}{space 2} .4804105{col 38}{space 1}    1.23{col 47}{space 3}0.220{col 55}{space 4}-.3522758{col 68}{space 3} 1.530899
{txt}{space 6}unified {c |}{col 15}{res}{space 2} .2848521{col 27}{space 2} .3641375{col 38}{space 1}    0.78{col 47}{space 3}0.434{col 55}{space 4}-.4288442{col 68}{space 3} .9985485
{txt}{space 6}dempres {c |}{col 15}{res}{space 2}-1.923181{col 27}{space 2}  .913868{col 38}{space 1}   -2.10{col 47}{space 3}0.035{col 55}{space 4}-3.714329{col 68}{space 3}-.1320324
{txt}{space 6}coldwar {c |}{col 15}{res}{space 2} .0735505{col 27}{space 2} .4741704{col 38}{space 1}    0.16{col 47}{space 3}0.877{col 55}{space 4}-.8558064{col 68}{space 3} 1.002907
{txt}{space 8}mislg {c |}{col 15}{res}{space 2} .0833739{col 27}{space 2} .0874702{col 38}{space 1}    0.95{col 47}{space 3}0.341{col 55}{space 4}-.0880646{col 68}{space 3} .2548123
{txt}{space 4}ccspn_ovr {c |}{col 15}{res}{space 2}-26.67903{col 27}{space 2} 10.16855{col 38}{space 1}   -2.62{col 47}{space 3}0.009{col 55}{space 4}-46.60903{col 68}{space 3}-6.749039
{txt}{space 3}disspn_ovr {c |}{col 15}{res}{space 2} 20.37542{col 27}{space 2} 13.98475{col 38}{space 1}    1.46{col 47}{space 3}0.145{col 55}{space 4}-7.034183{col 68}{space 3} 47.78502
{txt}{space 7}combat {c |}{col 15}{res}{space 2} 1.249086{col 27}{space 2}   .74538{col 38}{space 1}    1.68{col 47}{space 3}0.094{col 55}{space 4}-.2118318{col 68}{space 3} 2.710004
{txt}{space 5}_spline1 {c |}{col 15}{res}{space 2}-.0004501{col 27}{space 2} .0004171{col 38}{space 1}   -1.08{col 47}{space 3}0.280{col 55}{space 4}-.0012676{col 68}{space 3} .0003673
{txt}{space 5}_spline2 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 5}_spline3 {c |}{col 15}{res}{space 2} .0009794{col 27}{space 2} .0011736{col 38}{space 1}    0.83{col 47}{space 3}0.404{col 55}{space 4}-.0013208{col 68}{space 3} .0032796
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} -37.6358{col 27}{space 2} 13.95506{col 38}{space 1}   -2.70{col 47}{space 3}0.007{col 55}{space 4}-64.98722{col 68}{space 3}-10.28438
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using   usfacesTable1June16c,  dec(3) word append ctitle(NoKennedy)
{txt}{stata `"shellout using `"usfacesTable1June16c.rtf"'"':usfacesTable1June16c.rtf}
{browse `"D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check"' :dir}{com} : {txt}{stata `"seeout using "usfacesTable1June16c.txt""':seeout}

{com}. 
.  
. 
. *note to obtain chi-square use the models without cluster
. logit binforce fwhravgJuly20 war cinc election unified dempres coldwar mislg ccspn_ovr disspn_ovr  combat  _spline1 _spline2 _spline3

{txt}note: _spline2 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log likelihood = {res:-132.99049}  
Iteration 1:{space 3}log likelihood = {res:  -113.355}  
Iteration 2:{space 3}log likelihood = {res: -113.2855}  
Iteration 3:{space 3}log likelihood = {res:-113.28543}  
Iteration 4:{space 3}log likelihood = {res:-113.28543}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}       192
{txt}{col 49}LR chi2({res}13{txt}){col 67}= {res}     39.41
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0002
{txt}Log likelihood = {res}-113.28543{txt}{col 49}Pseudo R2{col 67}= {res}    0.1482

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     binforce{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
fwhravgJuly20 {c |}{col 15}{res}{space 2} 12.21369{col 27}{space 2} 5.395634{col 38}{space 1}    2.26{col 47}{space 3}0.024{col 55}{space 4}  1.63844{col 68}{space 3} 22.78894
{txt}{space 10}war {c |}{col 15}{res}{space 2} .2531687{col 27}{space 2} .5727913{col 38}{space 1}    0.44{col 47}{space 3}0.658{col 55}{space 4}-.8694817{col 68}{space 3} 1.375819
{txt}{space 9}cinc {c |}{col 15}{res}{space 2}-42.54879{col 27}{space 2} 14.42832{col 38}{space 1}   -2.95{col 47}{space 3}0.003{col 55}{space 4}-70.82778{col 68}{space 3}-14.26981
{txt}{space 5}election {c |}{col 15}{res}{space 2} .6021183{col 27}{space 2} .4975779{col 38}{space 1}    1.21{col 47}{space 3}0.226{col 55}{space 4}-.3731165{col 68}{space 3} 1.577353
{txt}{space 6}unified {c |}{col 15}{res}{space 2} 1.321541{col 27}{space 2} .7508959{col 38}{space 1}    1.76{col 47}{space 3}0.078{col 55}{space 4}-.1501883{col 68}{space 3} 2.793269
{txt}{space 6}dempres {c |}{col 15}{res}{space 2}-2.075126{col 27}{space 2} 1.284421{col 38}{space 1}   -1.62{col 47}{space 3}0.106{col 55}{space 4}-4.592544{col 68}{space 3} .4422921
{txt}{space 6}coldwar {c |}{col 15}{res}{space 2}-.4058044{col 27}{space 2} .6621115{col 38}{space 1}   -0.61{col 47}{space 3}0.540{col 55}{space 4}-1.703519{col 68}{space 3} .8919103
{txt}{space 8}mislg {c |}{col 15}{res}{space 2}-.0574454{col 27}{space 2} .0876104{col 38}{space 1}   -0.66{col 47}{space 3}0.512{col 55}{space 4}-.2291585{col 68}{space 3} .1142678
{txt}{space 4}ccspn_ovr {c |}{col 15}{res}{space 2}-34.90278{col 27}{space 2} 13.98833{col 38}{space 1}   -2.50{col 47}{space 3}0.013{col 55}{space 4}-62.31941{col 68}{space 3}-7.486155
{txt}{space 3}disspn_ovr {c |}{col 15}{res}{space 2} 22.18259{col 27}{space 2} 14.07243{col 38}{space 1}    1.58{col 47}{space 3}0.115{col 55}{space 4}-5.398862{col 68}{space 3} 49.76403
{txt}{space 7}combat {c |}{col 15}{res}{space 2} 2.101072{col 27}{space 2} .7794896{col 38}{space 1}    2.70{col 47}{space 3}0.007{col 55}{space 4} .5733007{col 68}{space 3} 3.628844
{txt}{space 5}_spline1 {c |}{col 15}{res}{space 2}-.0004646{col 27}{space 2} .0003732{col 38}{space 1}   -1.24{col 47}{space 3}0.213{col 55}{space 4}-.0011961{col 68}{space 3} .0002669
{txt}{space 5}_spline2 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 5}_spline3 {c |}{col 15}{res}{space 2} .0009967{col 27}{space 2} .0009185{col 38}{space 1}    1.09{col 47}{space 3}0.278{col 55}{space 4}-.0008036{col 68}{space 3} .0027969
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.642605{col 27}{space 2} 8.540736{col 38}{space 1}    0.43{col 47}{space 3}0.670{col 55}{space 4}-13.09693{col 68}{space 3} 20.38214
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. logit binforce fwhravgJuly20 war election unified dempres coldwar mislg ccspn_ovr disspn_ovr  combat _spline1 _spline2 _spline3 if leader~="Kennedy"

{txt}note: _spline2 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log likelihood = {res:-124.58866}  
Iteration 1:{space 3}log likelihood = {res:-108.66725}  
Iteration 2:{space 3}log likelihood = {res:-108.63693}  
Iteration 3:{space 3}log likelihood = {res:-108.63691}  
Iteration 4:{space 3}log likelihood = {res:-108.63691}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}       180
{txt}{col 49}LR chi2({res}12{txt}){col 67}= {res}     31.90
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0014
{txt}Log likelihood = {res}-108.63691{txt}{col 49}Pseudo R2{col 67}= {res}    0.1280

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     binforce{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
fwhravgJuly20 {c |}{col 15}{res}{space 2} 26.55213{col 27}{space 2} 11.78713{col 38}{space 1}    2.25{col 47}{space 3}0.024{col 55}{space 4} 3.449768{col 68}{space 3} 49.65448
{txt}{space 10}war {c |}{col 15}{res}{space 2}-.1106899{col 27}{space 2} .5721663{col 38}{space 1}   -0.19{col 47}{space 3}0.847{col 55}{space 4}-1.232115{col 68}{space 3} 1.010735
{txt}{space 5}election {c |}{col 15}{res}{space 2} .5893115{col 27}{space 2} .4893132{col 38}{space 1}    1.20{col 47}{space 3}0.228{col 55}{space 4}-.3697248{col 68}{space 3} 1.548348
{txt}{space 6}unified {c |}{col 15}{res}{space 2} .2848521{col 27}{space 2} .6469111{col 38}{space 1}    0.44{col 47}{space 3}0.660{col 55}{space 4}-.9830703{col 68}{space 3} 1.552775
{txt}{space 6}dempres {c |}{col 15}{res}{space 2}-1.923181{col 27}{space 2} 1.264262{col 38}{space 1}   -1.52{col 47}{space 3}0.128{col 55}{space 4}-4.401088{col 68}{space 3} .5547269
{txt}{space 6}coldwar {c |}{col 15}{res}{space 2} .0735505{col 27}{space 2} .6434702{col 38}{space 1}    0.11{col 47}{space 3}0.909{col 55}{space 4}-1.187628{col 68}{space 3} 1.334729
{txt}{space 8}mislg {c |}{col 15}{res}{space 2} .0833739{col 27}{space 2} .0715289{col 38}{space 1}    1.17{col 47}{space 3}0.244{col 55}{space 4}-.0568203{col 68}{space 3}  .223568
{txt}{space 4}ccspn_ovr {c |}{col 15}{res}{space 2}-26.67903{col 27}{space 2} 13.15256{col 38}{space 1}   -2.03{col 47}{space 3}0.043{col 55}{space 4}-52.45757{col 68}{space 3}-.9004932
{txt}{space 3}disspn_ovr {c |}{col 15}{res}{space 2} 20.37542{col 27}{space 2} 15.45134{col 38}{space 1}    1.32{col 47}{space 3}0.187{col 55}{space 4}-9.908651{col 68}{space 3} 50.65949
{txt}{space 7}combat {c |}{col 15}{res}{space 2} 1.249086{col 27}{space 2} .7038249{col 38}{space 1}    1.77{col 47}{space 3}0.076{col 55}{space 4}-.1303853{col 68}{space 3} 2.628558
{txt}{space 5}_spline1 {c |}{col 15}{res}{space 2}-.0004501{col 27}{space 2} .0003732{col 38}{space 1}   -1.21{col 47}{space 3}0.228{col 55}{space 4}-.0011817{col 68}{space 3} .0002814
{txt}{space 5}_spline2 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 5}_spline3 {c |}{col 15}{res}{space 2} .0009794{col 27}{space 2} .0009198{col 38}{space 1}    1.06{col 47}{space 3}0.287{col 55}{space 4}-.0008234{col 68}{space 3} .0027822
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} -37.6358{col 27}{space 2} 21.14548{col 38}{space 1}   -1.78{col 47}{space 3}0.075{col 55}{space 4}-79.08017{col 68}{space 3} 3.808571
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.  
. 
. 
. 
. *now for dyadic
. 
.  
.  use "D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\USFacesFPAJune16dyadic.dta
{txt}
{com}. 
. 
. logit binforce c.fwhravgJuly20 war relpow s demscore contig election dempres coldwar unified mislg c.ccspn_ovr c.disspn_ovr  combat _spline1 _spline2 _spline3 , robust cluster(leader)

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-915.76426}  
Iteration 1:{space 3}log pseudolikelihood = {res:-792.16448}  
Iteration 2:{space 3}log pseudolikelihood = {res:-729.87471}  
Iteration 3:{space 3}log pseudolikelihood = {res:-718.43643}  
Iteration 4:{space 3}log pseudolikelihood = {res:-718.24246}  
Iteration 5:{space 3}log pseudolikelihood = {res:-718.24221}  
Iteration 6:{space 3}log pseudolikelihood = {res:-718.24221}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}    24,804
{txt}{col 49}{help j_robustsingular##|_new:Wald chi2(7)}{col 67}=          {res}.
{txt}{col 49}Prob > chi2{col 67}=          {res}.
{txt}Log pseudolikelihood = {res}-718.24221{txt}{col 49}Pseudo R2{col 67}= {res}    0.2157

{txt}{ralign 79:(Std. Err. adjusted for {res:9} clusters in leader)}
{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}    Robust
{col 1}     binforce{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
fwhravgJuly20 {c |}{col 15}{res}{space 2} 1.447886{col 27}{space 2} .7425681{col 38}{space 1}    1.95{col 47}{space 3}0.051{col 55}{space 4}-.0075203{col 68}{space 3} 2.903293
{txt}{space 10}war {c |}{col 15}{res}{space 2}-.0670852{col 27}{space 2} .2608606{col 38}{space 1}   -0.26{col 47}{space 3}0.797{col 55}{space 4}-.5783626{col 68}{space 3} .4441922
{txt}{space 7}relpow {c |}{col 15}{res}{space 2}-2.176484{col 27}{space 2} 1.171298{col 38}{space 1}   -1.86{col 47}{space 3}0.063{col 55}{space 4}-4.472187{col 68}{space 3}  .119219
{txt}{space 12}s {c |}{col 15}{res}{space 2}-1.264398{col 27}{space 2} .5920868{col 38}{space 1}   -2.14{col 47}{space 3}0.033{col 55}{space 4}-2.424867{col 68}{space 3}-.1039291
{txt}{space 5}demscore {c |}{col 15}{res}{space 2}-.0818575{col 27}{space 2} .0274189{col 38}{space 1}   -2.99{col 47}{space 3}0.003{col 55}{space 4}-.1355977{col 68}{space 3}-.0281174
{txt}{space 7}contig {c |}{col 15}{res}{space 2}-.1906617{col 27}{space 2} .1150377{col 38}{space 1}   -1.66{col 47}{space 3}0.097{col 55}{space 4}-.4161315{col 68}{space 3} .0348081
{txt}{space 5}election {c |}{col 15}{res}{space 2}-.1861561{col 27}{space 2} .2389676{col 38}{space 1}   -0.78{col 47}{space 3}0.436{col 55}{space 4}-.6545239{col 68}{space 3} .2822117
{txt}{space 6}dempres {c |}{col 15}{res}{space 2}-.8031156{col 27}{space 2} .4192266{col 38}{space 1}   -1.92{col 47}{space 3}0.055{col 55}{space 4}-1.624785{col 68}{space 3} .0185534
{txt}{space 6}coldwar {c |}{col 15}{res}{space 2}-.3252103{col 27}{space 2} .3871101{col 38}{space 1}   -0.84{col 47}{space 3}0.401{col 55}{space 4}-1.083932{col 68}{space 3} .4335115
{txt}{space 6}unified {c |}{col 15}{res}{space 2}-.0101802{col 27}{space 2} .3876678{col 38}{space 1}   -0.03{col 47}{space 3}0.979{col 55}{space 4} -.769995{col 68}{space 3} .7496347
{txt}{space 8}mislg {c |}{col 15}{res}{space 2} .0566608{col 27}{space 2} .0224827{col 38}{space 1}    2.52{col 47}{space 3}0.012{col 55}{space 4} .0125955{col 68}{space 3}  .100726
{txt}{space 4}ccspn_ovr {c |}{col 15}{res}{space 2}-7.181173{col 27}{space 2} 3.884328{col 38}{space 1}   -1.85{col 47}{space 3}0.064{col 55}{space 4}-14.79432{col 68}{space 3} .4319691
{txt}{space 3}disspn_ovr {c |}{col 15}{res}{space 2}-9.052615{col 27}{space 2} 4.391138{col 38}{space 1}   -2.06{col 47}{space 3}0.039{col 55}{space 4}-17.65909{col 68}{space 3}-.4461437
{txt}{space 7}combat {c |}{col 15}{res}{space 2}-.7408641{col 27}{space 2} .3422674{col 38}{space 1}   -2.16{col 47}{space 3}0.030{col 55}{space 4}-1.411696{col 68}{space 3}-.0700324
{txt}{space 5}_spline1 {c |}{col 15}{res}{space 2} 4.32e-06{col 27}{space 2} 1.75e-06{col 38}{space 1}    2.46{col 47}{space 3}0.014{col 55}{space 4} 8.84e-07{col 68}{space 3} 7.76e-06
{txt}{space 5}_spline2 {c |}{col 15}{res}{space 2}-3.89e-06{col 27}{space 2} 2.05e-06{col 38}{space 1}   -1.90{col 47}{space 3}0.057{col 55}{space 4}-7.91e-06{col 68}{space 3} 1.22e-07
{txt}{space 5}_spline3 {c |}{col 15}{res}{space 2} 1.43e-06{col 27}{space 2} 1.12e-06{col 38}{space 1}    1.28{col 47}{space 3}0.201{col 55}{space 4}-7.65e-07{col 68}{space 3} 3.63e-06
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 2.427897{col 27}{space 2} 2.881149{col 38}{space 1}    0.84{col 47}{space 3}0.399{col 55}{space 4}-3.219052{col 68}{space 3} 8.074845
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using   usfacesTable1June16c,  dec(3) word append ctitle(Dyadic_Logit)
{txt}{stata `"shellout using `"usfacesTable1June16c.rtf"'"':usfacesTable1June16c.rtf}
{browse `"D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check"' :dir}{com} : {txt}{stata `"seeout using "usfacesTable1June16c.txt""':seeout}

{com}. 
. 
. 
. *FOR CHI-SQUARE remove cluster
. logit binforce c.fwhravgJuly20 war relpow s demscore contig election dempres coldwar unified mislg c.ccspn_ovr c.disspn_ovr  combat _spline1 _spline2 _spline3

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-915.76426}  
Iteration 1:{space 3}log likelihood = {res:-792.16448}  
Iteration 2:{space 3}log likelihood = {res:-729.87471}  
Iteration 3:{space 3}log likelihood = {res:-718.43643}  
Iteration 4:{space 3}log likelihood = {res:-718.24246}  
Iteration 5:{space 3}log likelihood = {res:-718.24221}  
Iteration 6:{space 3}log likelihood = {res:-718.24221}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}    24,804
{txt}{col 49}LR chi2({res}17{txt}){col 67}= {res}    395.04
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-718.24221{txt}{col 49}Pseudo R2{col 67}= {res}    0.2157

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     binforce{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
fwhravgJuly20 {c |}{col 15}{res}{space 2} 1.447886{col 27}{space 2} 1.276596{col 38}{space 1}    1.13{col 47}{space 3}0.257{col 55}{space 4}-1.054196{col 68}{space 3} 3.949969
{txt}{space 10}war {c |}{col 15}{res}{space 2}-.0670852{col 27}{space 2} .2793141{col 38}{space 1}   -0.24{col 47}{space 3}0.810{col 55}{space 4}-.6145307{col 68}{space 3} .4803603
{txt}{space 7}relpow {c |}{col 15}{res}{space 2}-2.176484{col 27}{space 2} .7812551{col 38}{space 1}   -2.79{col 47}{space 3}0.005{col 55}{space 4}-3.707716{col 68}{space 3}-.6452519
{txt}{space 12}s {c |}{col 15}{res}{space 2}-1.264398{col 27}{space 2} .3945598{col 38}{space 1}   -3.20{col 47}{space 3}0.001{col 55}{space 4}-2.037721{col 68}{space 3}-.4910749
{txt}{space 5}demscore {c |}{col 15}{res}{space 2}-.0818575{col 27}{space 2} .0186362{col 38}{space 1}   -4.39{col 47}{space 3}0.000{col 55}{space 4}-.1183839{col 68}{space 3}-.0453312
{txt}{space 7}contig {c |}{col 15}{res}{space 2}-.1906617{col 27}{space 2} .0851912{col 38}{space 1}   -2.24{col 47}{space 3}0.025{col 55}{space 4}-.3576334{col 68}{space 3}  -.02369
{txt}{space 5}election {c |}{col 15}{res}{space 2}-.1861561{col 27}{space 2} .2729259{col 38}{space 1}   -0.68{col 47}{space 3}0.495{col 55}{space 4}-.7210811{col 68}{space 3} .3487688
{txt}{space 6}dempres {c |}{col 15}{res}{space 2}-.8031156{col 27}{space 2} .4618239{col 38}{space 1}   -1.74{col 47}{space 3}0.082{col 55}{space 4}-1.708274{col 68}{space 3} .1020427
{txt}{space 6}coldwar {c |}{col 15}{res}{space 2}-.3252103{col 27}{space 2} .3371638{col 38}{space 1}   -0.96{col 47}{space 3}0.335{col 55}{space 4}-.9860393{col 68}{space 3} .3356186
{txt}{space 6}unified {c |}{col 15}{res}{space 2}-.0101802{col 27}{space 2} .3113724{col 38}{space 1}   -0.03{col 47}{space 3}0.974{col 55}{space 4} -.620459{col 68}{space 3} .6000986
{txt}{space 8}mislg {c |}{col 15}{res}{space 2} .0566608{col 27}{space 2} .0358364{col 38}{space 1}    1.58{col 47}{space 3}0.114{col 55}{space 4}-.0135773{col 68}{space 3} .1268989
{txt}{space 4}ccspn_ovr {c |}{col 15}{res}{space 2}-7.181173{col 27}{space 2} 4.873863{col 38}{space 1}   -1.47{col 47}{space 3}0.141{col 55}{space 4}-16.73377{col 68}{space 3} 2.371423
{txt}{space 3}disspn_ovr {c |}{col 15}{res}{space 2}-9.052615{col 27}{space 2} 5.882036{col 38}{space 1}   -1.54{col 47}{space 3}0.124{col 55}{space 4}-20.58119{col 68}{space 3} 2.475964
{txt}{space 7}combat {c |}{col 15}{res}{space 2}-.7408641{col 27}{space 2} .3357925{col 38}{space 1}   -2.21{col 47}{space 3}0.027{col 55}{space 4}-1.399005{col 68}{space 3}-.0827229
{txt}{space 5}_spline1 {c |}{col 15}{res}{space 2} 4.32e-06{col 27}{space 2} 7.55e-07{col 38}{space 1}    5.72{col 47}{space 3}0.000{col 55}{space 4} 2.84e-06{col 68}{space 3} 5.80e-06
{txt}{space 5}_spline2 {c |}{col 15}{res}{space 2}-3.89e-06{col 27}{space 2} 8.52e-07{col 38}{space 1}   -4.57{col 47}{space 3}0.000{col 55}{space 4}-5.56e-06{col 68}{space 3}-2.22e-06
{txt}{space 5}_spline3 {c |}{col 15}{res}{space 2} 1.43e-06{col 27}{space 2} 4.66e-07{col 38}{space 1}    3.07{col 47}{space 3}0.002{col 55}{space 4} 5.19e-07{col 68}{space 3} 2.35e-06
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 2.427897{col 27}{space 2} 3.815273{col 38}{space 1}    0.64{col 47}{space 3}0.525{col 55}{space 4}-5.049902{col 68}{space 3} 9.905695
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. *now for nbreg**
. nbreg bi_in_in_2 fwhravgJuly20 war relpow s demscore contig election dempres coldwar unified mislg c.ccspn c.disspn  combat  _spline1 _spline2 _spline3, cluster(leader) robust

{txt}Fitting Poisson model:
{res}
{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-2135.7944}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1904.5299}  (backed up)
Iteration 2:{space 3}log pseudolikelihood = {res:-1004.0156}  (backed up)
Iteration 3:{space 3}log pseudolikelihood = {res:-871.22256}  
Iteration 4:{space 3}log pseudolikelihood = {res:-803.68263}  
Iteration 5:{space 3}log pseudolikelihood = {res:-803.12153}  
Iteration 6:{space 3}log pseudolikelihood = {res:-803.11904}  
Iteration 7:{space 3}log pseudolikelihood = {res:-803.11904}  
{res}
{txt}Fitting constant-only model:
{res}
{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1022.6716}  (not concave)
Iteration 1:{space 3}log pseudolikelihood = {res:-979.39374}  
Iteration 2:{space 3}log pseudolikelihood = {res:-979.21143}  
Iteration 3:{space 3}log pseudolikelihood = {res:  -979.211}  
Iteration 4:{space 3}log pseudolikelihood = {res:  -979.211}  
{res}
{txt}Fitting full model:
{res}
{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-930.97594}  (not concave)
Iteration 1:{space 3}log pseudolikelihood = {res:-803.28895}  
Iteration 2:{space 3}log pseudolikelihood = {res: -784.6956}  
Iteration 3:{space 3}log pseudolikelihood = {res:-784.02586}  
Iteration 4:{space 3}log pseudolikelihood = {res: -784.0206}  
Iteration 5:{space 3}log pseudolikelihood = {res: -784.0206}  
{res}
{txt}Negative binomial regression{col 49}Number of obs{col 67}= {res}    24,804
{txt}{col 49}{help j_robustsingular##|_new:Wald chi2(6)}{col 67}=          {res}.
{txt}{col 1}Dispersion{col 22}= {res}mean{txt}{col 49}Prob > chi2{col 67}=          {res}.
{txt}Log pseudolikelihood = {res} -784.0206{txt}{col 49}Pseudo R2{col 67}= {res}    0.1993

{txt}{ralign 79:(Std. Err. adjusted for {res:9} clusters in leader)}
{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}    Robust
{col 1}   bi_in_in_2{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
fwhravgJuly20 {c |}{col 15}{res}{space 2}   1.6791{col 27}{space 2} .7879731{col 38}{space 1}    2.13{col 47}{space 3}0.033{col 55}{space 4} .1347013{col 68}{space 3} 3.223499
{txt}{space 10}war {c |}{col 15}{res}{space 2}-.1977774{col 27}{space 2} .2966635{col 38}{space 1}   -0.67{col 47}{space 3}0.505{col 55}{space 4}-.7792272{col 68}{space 3} .3836724
{txt}{space 7}relpow {c |}{col 15}{res}{space 2}-2.443267{col 27}{space 2} 1.142369{col 38}{space 1}   -2.14{col 47}{space 3}0.032{col 55}{space 4}-4.682269{col 68}{space 3}-.2042651
{txt}{space 12}s {c |}{col 15}{res}{space 2}-1.198566{col 27}{space 2}    .5657{col 38}{space 1}   -2.12{col 47}{space 3}0.034{col 55}{space 4}-2.307318{col 68}{space 3}-.0898145
{txt}{space 5}demscore {c |}{col 15}{res}{space 2}-.0872915{col 27}{space 2} .0318216{col 38}{space 1}   -2.74{col 47}{space 3}0.006{col 55}{space 4}-.1496607{col 68}{space 3}-.0249223
{txt}{space 7}contig {c |}{col 15}{res}{space 2}-.1712797{col 27}{space 2} .1214969{col 38}{space 1}   -1.41{col 47}{space 3}0.159{col 55}{space 4}-.4094093{col 68}{space 3} .0668498
{txt}{space 5}election {c |}{col 15}{res}{space 2}-.3040291{col 27}{space 2} .2658774{col 38}{space 1}   -1.14{col 47}{space 3}0.253{col 55}{space 4}-.8251393{col 68}{space 3} .2170811
{txt}{space 6}dempres {c |}{col 15}{res}{space 2}-1.194519{col 27}{space 2} .4556259{col 38}{space 1}   -2.62{col 47}{space 3}0.009{col 55}{space 4}-2.087529{col 68}{space 3}-.3015085
{txt}{space 6}coldwar {c |}{col 15}{res}{space 2}-.4808471{col 27}{space 2} .4452226{col 38}{space 1}   -1.08{col 47}{space 3}0.280{col 55}{space 4}-1.353467{col 68}{space 3} .3917732
{txt}{space 6}unified {c |}{col 15}{res}{space 2} .1696247{col 27}{space 2} .4345665{col 38}{space 1}    0.39{col 47}{space 3}0.696{col 55}{space 4}  -.68211{col 68}{space 3} 1.021359
{txt}{space 8}mislg {c |}{col 15}{res}{space 2}  .050444{col 27}{space 2} .0190127{col 38}{space 1}    2.65{col 47}{space 3}0.008{col 55}{space 4} .0131797{col 68}{space 3} .0877082
{txt}{space 4}ccspn_ovr {c |}{col 15}{res}{space 2}-6.903499{col 27}{space 2} 5.302373{col 38}{space 1}   -1.30{col 47}{space 3}0.193{col 55}{space 4}-17.29596{col 68}{space 3} 3.488961
{txt}{space 3}disspn_ovr {c |}{col 15}{res}{space 2}-11.51214{col 27}{space 2} 5.873197{col 38}{space 1}   -1.96{col 47}{space 3}0.050{col 55}{space 4} -23.0234{col 68}{space 3}-.0008889
{txt}{space 7}combat {c |}{col 15}{res}{space 2}-.9162292{col 27}{space 2} .3840256{col 38}{space 1}   -2.39{col 47}{space 3}0.017{col 55}{space 4}-1.668905{col 68}{space 3}-.1635529
{txt}{space 5}_spline1 {c |}{col 15}{res}{space 2} 4.25e-06{col 27}{space 2} 1.65e-06{col 38}{space 1}    2.58{col 47}{space 3}0.010{col 55}{space 4} 1.03e-06{col 68}{space 3} 7.48e-06
{txt}{space 5}_spline2 {c |}{col 15}{res}{space 2}-3.75e-06{col 27}{space 2} 1.93e-06{col 38}{space 1}   -1.94{col 47}{space 3}0.052{col 55}{space 4}-7.54e-06{col 68}{space 3} 3.48e-08
{txt}{space 5}_spline3 {c |}{col 15}{res}{space 2} 1.32e-06{col 27}{space 2} 1.07e-06{col 38}{space 1}    1.24{col 47}{space 3}0.214{col 55}{space 4}-7.64e-07{col 68}{space 3} 3.41e-06
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 2.709413{col 27}{space 2} 4.157721{col 38}{space 1}    0.65{col 47}{space 3}0.515{col 55}{space 4} -5.43957{col 68}{space 3}  10.8584
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}/lnalpha {c |}{col 15}{res}{space 2}  1.57846{col 27}{space 2} .3903179{col 55}{space 4} .8134514{col 68}{space 3} 2.343469
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        alpha {c |}{col 15}{res}{space 2} 4.847486{col 27}{space 2}  1.89206{col 55}{space 4}  2.25568{col 68}{space 3} 10.41731
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. outreg2 using   usfacesTable1June16c,  dec(3) word append ctitle(Nbreg)
{txt}{stata `"shellout using `"usfacesTable1June16c.rtf"'"':usfacesTable1June16c.rtf}
{browse `"D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check"' :dir}{com} : {txt}{stata `"seeout using "usfacesTable1June16c.txt""':seeout}

{com}. 
. *For chi-square remove cluster
. nbreg bi_in_in_2 fwhravgJuly20 war relpow s demscore contig election dempres coldwar unified mislg c.ccspn c.disspn  combat  _spline1 _spline2 _spline3

{txt}Fitting Poisson model:
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-2135.7944}  
Iteration 1:{space 3}log likelihood = {res:-1904.5299}  (backed up)
Iteration 2:{space 3}log likelihood = {res:-1004.0156}  (backed up)
Iteration 3:{space 3}log likelihood = {res:-871.22256}  
Iteration 4:{space 3}log likelihood = {res:-803.68263}  
Iteration 5:{space 3}log likelihood = {res:-803.12153}  
Iteration 6:{space 3}log likelihood = {res:-803.11904}  
Iteration 7:{space 3}log likelihood = {res:-803.11904}  
{res}
{txt}Fitting constant-only model:
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-1022.6716}  (not concave)
Iteration 1:{space 3}log likelihood = {res:-979.39374}  
Iteration 2:{space 3}log likelihood = {res:-979.21143}  
Iteration 3:{space 3}log likelihood = {res:  -979.211}  
Iteration 4:{space 3}log likelihood = {res:  -979.211}  
{res}
{txt}Fitting full model:
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-930.97594}  (not concave)
Iteration 1:{space 3}log likelihood = {res:-803.28895}  
Iteration 2:{space 3}log likelihood = {res: -784.6956}  
Iteration 3:{space 3}log likelihood = {res:-784.02586}  
Iteration 4:{space 3}log likelihood = {res: -784.0206}  
Iteration 5:{space 3}log likelihood = {res: -784.0206}  
{res}
{txt}Negative binomial regression{col 49}Number of obs{col 67}= {res}    24,804
{txt}{col 49}LR chi2({res}17{txt}){col 67}= {res}    390.38
{txt}{col 1}Dispersion{col 16}= {res}mean{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res} -784.0206{txt}{col 49}Pseudo R2{col 67}= {res}    0.1993

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   bi_in_in_2{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
fwhravgJuly20 {c |}{col 15}{res}{space 2}   1.6791{col 27}{space 2} 1.346539{col 38}{space 1}    1.25{col 47}{space 3}0.212{col 55}{space 4}-.9600672{col 68}{space 3} 4.318268
{txt}{space 10}war {c |}{col 15}{res}{space 2}-.1977774{col 27}{space 2} .2844392{col 38}{space 1}   -0.70{col 47}{space 3}0.487{col 55}{space 4} -.755268{col 68}{space 3} .3597133
{txt}{space 7}relpow {c |}{col 15}{res}{space 2}-2.443267{col 27}{space 2} .8320009{col 38}{space 1}   -2.94{col 47}{space 3}0.003{col 55}{space 4}-4.073959{col 68}{space 3}-.8125753
{txt}{space 12}s {c |}{col 15}{res}{space 2}-1.198566{col 27}{space 2} .3928239{col 38}{space 1}   -3.05{col 47}{space 3}0.002{col 55}{space 4}-1.968487{col 68}{space 3}-.4286454
{txt}{space 5}demscore {c |}{col 15}{res}{space 2}-.0872915{col 27}{space 2} .0184966{col 38}{space 1}   -4.72{col 47}{space 3}0.000{col 55}{space 4}-.1235441{col 68}{space 3}-.0510389
{txt}{space 7}contig {c |}{col 15}{res}{space 2}-.1712797{col 27}{space 2} .0902817{col 38}{space 1}   -1.90{col 47}{space 3}0.058{col 55}{space 4}-.3482285{col 68}{space 3} .0056691
{txt}{space 5}election {c |}{col 15}{res}{space 2}-.3040291{col 27}{space 2} .2895319{col 38}{space 1}   -1.05{col 47}{space 3}0.294{col 55}{space 4}-.8715012{col 68}{space 3}  .263443
{txt}{space 6}dempres {c |}{col 15}{res}{space 2}-1.194519{col 27}{space 2} .4703945{col 38}{space 1}   -2.54{col 47}{space 3}0.011{col 55}{space 4}-2.116475{col 68}{space 3}-.2725624
{txt}{space 6}coldwar {c |}{col 15}{res}{space 2}-.4808471{col 27}{space 2} .3192735{col 38}{space 1}   -1.51{col 47}{space 3}0.132{col 55}{space 4}-1.106612{col 68}{space 3} .1449175
{txt}{space 6}unified {c |}{col 15}{res}{space 2} .1696247{col 27}{space 2} .2994583{col 38}{space 1}    0.57{col 47}{space 3}0.571{col 55}{space 4}-.4173029{col 68}{space 3} .7565523
{txt}{space 8}mislg {c |}{col 15}{res}{space 2}  .050444{col 27}{space 2} .0376447{col 38}{space 1}    1.34{col 47}{space 3}0.180{col 55}{space 4}-.0233383{col 68}{space 3} .1242262
{txt}{space 4}ccspn_ovr {c |}{col 15}{res}{space 2}-6.903499{col 27}{space 2}   5.0662{col 38}{space 1}   -1.36{col 47}{space 3}0.173{col 55}{space 4}-16.83307{col 68}{space 3} 3.026071
{txt}{space 3}disspn_ovr {c |}{col 15}{res}{space 2}-11.51214{col 27}{space 2} 6.094275{col 38}{space 1}   -1.89{col 47}{space 3}0.059{col 55}{space 4} -23.4567{col 68}{space 3} .4324163
{txt}{space 7}combat {c |}{col 15}{res}{space 2}-.9162292{col 27}{space 2} .3495615{col 38}{space 1}   -2.62{col 47}{space 3}0.009{col 55}{space 4}-1.601357{col 68}{space 3}-.2311012
{txt}{space 5}_spline1 {c |}{col 15}{res}{space 2} 4.25e-06{col 27}{space 2} 7.31e-07{col 38}{space 1}    5.82{col 47}{space 3}0.000{col 55}{space 4} 2.82e-06{col 68}{space 3} 5.69e-06
{txt}{space 5}_spline2 {c |}{col 15}{res}{space 2}-3.75e-06{col 27}{space 2} 8.30e-07{col 38}{space 1}   -4.52{col 47}{space 3}0.000{col 55}{space 4}-5.38e-06{col 68}{space 3}-2.13e-06
{txt}{space 5}_spline3 {c |}{col 15}{res}{space 2} 1.32e-06{col 27}{space 2} 4.58e-07{col 38}{space 1}    2.89{col 47}{space 3}0.004{col 55}{space 4} 4.26e-07{col 68}{space 3} 2.22e-06
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 2.709413{col 27}{space 2} 3.963885{col 38}{space 1}    0.68{col 47}{space 3}0.494{col 55}{space 4} -5.05966{col 68}{space 3} 10.47848
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}/lnalpha {c |}{col 15}{res}{space 2}  1.57846{col 27}{space 2} .2996045{col 55}{space 4} .9912463{col 68}{space 3} 2.165674
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        alpha {c |}{col 15}{res}{space 2} 4.847486{col 27}{space 2} 1.452329{col 55}{space 4} 2.694591{col 68}{space 3}  8.72048
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of alpha=0: {help j_chibar##|_new:chibar2(01) = }{res}38.20{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}D:\Faces\Fiji\US Faces of Distrust\FPA RnR 2 Due Apr 7\data check\usfaces3June16.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}16 Jun 2022, 13:17:15
{txt}{.-}
{smcl}
{txt}{sf}{ul off}